package testview.zhen.com.myapplication.jetpack

import android.content.Context
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil

import testview.zhen.com.myapplication.R
import testview.zhen.com.myapplication.databinding.FragmentTestBindingBinding


class TestBindingFragment : Fragment() {

    lateinit var fragmentTestBinding: FragmentTestBindingBinding
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                              savedInstanceState: Bundle?): View? {
        fragmentTestBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_test_binding, container, false)
        return fragmentTestBinding.root
    }

    override fun onResume() {
        super.onResume()
        fragmentTestBinding.fragmentText = "实例化fragment"
    }

}
